package com.sc.highspeed.db.dao;

import com.sc.highspeed.db.model.OrganizationModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Admin on 2017/11/27.
 */
public interface OrganizationDao {

    OrganizationModel getOrganizationByName(String name);
    List<OrganizationModel> getOrganizationList();

    int deleteOrganizationByName(String name);
    int updateOrganizationById(OrganizationModel organizationModel);
    int updateOrganizationRemarkByName(@Param("name") String name, @Param("remark") String remark);
    int updateOrganizationIntroByName(@Param("name") String name, @Param("intro") String intro);
    int updateOrganizationIsCheckByName(@Param("name") String name, @Param("isCheck") String isCheck);
    int insertOrganization(OrganizationModel organizationModel);
    List<OrganizationModel> getOrganizationByParent(String parentName);
    OrganizationModel getOrganizationById(int id);
    int updateOrganizationParent(@Param("id") int id, @Param("parentName") String parentName);

}
